package memento;

/**
 * @Author: Ma JiBin
 * @Email: 1423553596@qq.com
 * @Date: 2018/9/12 15:42
 * @Description: Memento 包含了要被恢复的对象的状态
 */
public class Memento {
    private String state;

    public Memento(String state) {
        this.state = state;
    }

    /**
     * 获取状态方法
     * @return
     */
    public String getState() {
        return state;
    }
}
